<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>SAEE</title>
	<h:outputStylesheet library="css" name="style.css" />
	<h:outputScript name="jsf.js" library="javax.faces" target="head" />
</h:head>
<h:body>
	<div id="cabecalho">
		<h:graphicImage library="imagens" name="logosaee.png" id="logoCompany" />
	</div>
	<div id="conteudo">
		<h2>Login no sistema</h2>




		<h:form id="formLogin">
			<p:growl id="growl" life="2500"></p:growl>
			<p:ajaxStatus onstart="statusDialog.show();"
				onsuccess="statusDialog.hide();" />

			<p:dialog modal="true" widgetVar="statusDialog" header="Carregando"
				draggable="false" closable="false">
				<p:graphicImage value="resources/imagens/ajax-loader.gif"></p:graphicImage>
			</p:dialog>

			<h:outputLabel value="Login:" for="inputLogin" />
			<p:inputText id="inputLogin" value="#{loginBean.pessoa.login}" />
			<br></br>

			<h:outputLabel value="Senha:" for="inputSenha" />
			<p:password id="inputSenha" value="#{loginBean.pessoa.senha}" />
			<br></br>

			<p:commandButton value="Efetuar login" update="growl"
				action="#{loginBean.efetuaLogin}" style="margin-left: 140px" />

		</h:form>
	</div>
	<div id="rodape">------------Sistema de Apoio Empresa/Escola-----------</div>
</h:body>
</html>